home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / misc / graphtal1293.lha / Graphtal.Amiga / README.AMIGA < prev    next >
Text File  |  1993-12-13  |  7KB  |  231 lines

  1.  
  2.  
  3. README.AMIGA  (2nd Version 12.93)
  4. ============= 
  5.  
  6. - To compile Graphtal on the Amiga you need GCC-233, the os-includes 
  7.   and a lot of memory. (compilation without optimizer: about 6MB)
  8.   Don't forget to set a large stack size (256000 is fine) !
  9.   Because AmigaDOS isn't case sensitive you must edit string.h 
  10.   (for more information on this read the header of string.h)
  11.   (NEW) Do also read the file IMPORTANT.README.AMIGA 
  12.  
  13. - Graphtal has a device for Rayshade output.
  14.  
  15. - I have include some tools to convert PPM output to IFF24 in bin
  16.   (to convert PPM output to IFF get the the PBM plus package)
  17.  
  18. - Note: some examples for Graphtal need a lot of memory (over 10MB) !
  19.  
  20. - Note: Graphtal needs the cpp to process the inputfile.
  21.   (NEW) cpp and sh are now included in the directory Unix
  22.  
  23. - GCC-233 and Rayshade are available by anonymous FTP in ftp.luth.se 
  24.   or any other Aminet site
  25.  
  26. - (NEW) Note: setting the environment variable COLORFILE now works
  27.   (see changes in file color.C)
  28.  
  29. - (NEW) examples how to use graphtal can be found in the file EXAMPLE.SCRIPT
  30.  
  31.  
  32. For more information on Graphtal please read the README file !
  33.  
  34.  
  35. Lucas Ammon (lammon@iamexwi.unibe.ch)
  36.  
  37.  
  38.  
  39. This is a list of changes made to the original 
  40. Graphtal_no_bison_no_flex-1.0.tar.Z distribution ... 
  41.  
  42.  
  43. ==============================================================================
  44. TO TRANSFORM Graphtal.Original/color.C 
  45.    INTO Graphtal.Amiga/color.C ...
  46. ==============================================================================
  47.  
  48. *** APPEND AFTER 39 IN color.c.u ***
  49. >
  50. >#ifdef AMIGA_GCC
  51. >
  52. >void Color::setupColors()
  53. >{
  54. >  char name[256];
  55. >  if (GetVar(COLOR_ENV,name,256,0)!=-1)
  56. >    ColorFile = name;
  57. >  else
  58. >    ColorFile = defaultColorFile;
  59. >  readColors();
  60. >}
  61. >
  62. >#else
  63. >
  64.  
  65. *** APPEND AFTER 49 IN color.c.u ***
  66. >#endif
  67. >
  68.  
  69.  
  70.  
  71.  
  72. ==============================================================================
  73. TO TRANSFORM Graphtal.Original/color.h 
  74.    INTO Graphtal.Amiga/color.h ...
  75. ==============================================================================
  76.  
  77. *** APPEND AFTER 21 IN color.h.u ***
  78. >extern "C" GetVar(...);
  79. >
  80.  
  81.  
  82.  
  83.  
  84. ==============================================================================
  85. TO TRANSFORM Graphtal.Original/Expression.C 
  86.    INTO Graphtal.Amiga/Expression.C ...
  87. ==============================================================================
  88.  
  89. *** CHANGE [81,85] IN Graphtal.Original/Expression.C TO [81,93] IN Graphtal.Amiga/Expression.C ***
  90.  
  91. <  for (i=0; i<op2->theExpression->count(); i++)
  92. <    theExpression->append(op2->theExpression->item(i)->copy());
  93. <  for (i=0; i<op1->theExpression->count(); i++)
  94. <    theExpression->append(op1->theExpression->item(i)->copy());
  95. <  theExpression->append(oper);
  96.  
  97. ---------------
  98. >#ifdef AMIGA_GCC
  99. >  for (i=0; i<op1->theExpression->count(); i++)
  100. >    theExpression->append(op1->theExpression->item(i)->copy());
  101. >  for (i=0; i<op2->theExpression->count(); i++)
  102. >    theExpression->append(op2->theExpression->item(i)->copy());
  103. >  theExpression->append(oper);
  104. >#else
  105. >  for (i=0; i<op2->theExpression->count(); i++)
  106. >    theExpression->append(op2->theExpression->item(i)->copy());
  107. >  for (i=0; i<op1->theExpression->count(); i++)
  108. >    theExpression->append(op1->theExpression->item(i)->copy());
  109. >  theExpression->append(oper);
  110. >#endif
  111.  
  112. *** CHANGE [100,106] IN Graphtal.Original/Expression.C TO [108,124] IN Graphtal.Amiga/Expression.C ***
  113.  
  114. <  for (i=0; i<op3->theExpression->count(); i++)
  115. <    theExpression->append(op3->theExpression->item(i)->copy());
  116. <  for (i=0; i<op2->theExpression->count(); i++)
  117. <    theExpression->append(op2->theExpression->item(i)->copy());
  118. <  for (i=0; i<op1->theExpression->count(); i++)
  119. <    theExpression->append(op1->theExpression->item(i)->copy());
  120. <  theExpression->append(oper);
  121.  
  122. ---------------
  123. >#ifdef AMIGA_GCC
  124. >  for (i=0; i<op1->theExpression->count(); i++)
  125. >    theExpression->append(op1->theExpression->item(i)->copy());
  126. >  for (i=0; i<op2->theExpression->count(); i++)
  127. >    theExpression->append(op2->theExpression->item(i)->copy());
  128. >  for (i=0; i<op3->theExpression->count(); i++)
  129. >    theExpression->append(op3->theExpression->item(i)->copy());
  130. >  theExpression->append(oper);
  131. >#else
  132. >  for (i=0; i<op3->theExpression->count(); i++)
  133. >    theExpression->append(op3->theExpression->item(i)->copy());
  134. >  for (i=0; i<op2->theExpression->count(); i++)
  135. >    theExpression->append(op2->theExpression->item(i)->copy());
  136. >  for (i=0; i<op1->theExpression->count(); i++)
  137. >    theExpression->append(op1->theExpression->item(i)->copy());
  138. >  theExpression->append(oper);
  139. >#endif
  140.  
  141.  
  142.  
  143.  
  144.  
  145. ==============================================================================
  146. TO TRANSFORM Graphtal.Original/main.C 
  147.    INTO Graphtal.Amiga/main.C ...
  148. ==============================================================================
  149.  
  150. *** APPEND AFTER 39 IN Graphtal.Original/main.C ***
  151. >#ifdef SUPPORT_AMIGA
  152. ># include "LineDevice.h"
  153. ># include "WireDevice.h"
  154. ># include "AMIGA_Window.h"
  155. >#endif
  156. >
  157.  
  158. *** APPEND AFTER 106 IN Graphtal.Original/main.C ***
  159. >#ifdef SUPPORT_AMIGA
  160. >    else if (theOptions.drivername == "amigasimple")
  161. >      d = new LineDevice(new AMIGA_Window, &theOptions);
  162. >    else if (theOptions.drivername == "amigawire")
  163. >      d = new WireDevice(new AMIGA_Window, &theOptions);
  164. >#endif
  165.  
  166. *** APPEND AFTER 112 IN Graphtal.Original/main.C ***
  167. >#ifdef SUPPORT_AMIGA
  168. >    cerr << "\nUnknown driver specified, using simple AMIGA.\n\n";
  169. >      d = new LineDevice(new AMIGA_Window, &theOptions);
  170. >#else
  171.  
  172. *** APPEND AFTER 115 IN Graphtal.Original/main.C ***
  173. >#endif
  174.  
  175.  
  176.  
  177.  
  178.  
  179. ==============================================================================
  180. TO TRANSFORM Graphtal.Original/mathutilities.h 
  181.    INTO Graphtal.Amiga/mathutilities.h ...
  182. ==============================================================================
  183.  
  184. *** APPEND AFTER 23 IN Graphtal.Original/mathutilities.h ***
  185. >#ifdef NO_DRAND48
  186. >#include <stdlib.h>
  187. >inline void   srand48(long seed) { srand((int)seed); }
  188. >inline double drand48()          { return (double)( ((double)rand()) / ((double)(RAND_MAX)) ); }
  189. >#else
  190.  
  191. *** APPEND AFTER 25 IN Graphtal.Original/mathutilities.h ***
  192. >#endif
  193.  
  194.  
  195.  
  196.  
  197.  
  198. ==============================================================================
  199. TO TRANSFORM Graphtal.Original/rcString.C 
  200.    INTO Graphtal.Amiga/rcString.C ...
  201. ==============================================================================
  202.  
  203. *** APPEND AFTER 19 IN Graphtal.Original/rcString.C ***
  204. >#ifdef AMIGA_GCC
  205. >    #include "string.h"
  206. >#endif
  207. >
  208.  
  209.  
  210.  
  211.  
  212.  
  213. ==============================================================================
  214. CREATE FILE Graphtal.Amiga/string.h
  215. ==============================================================================
  216.  
  217. >/*
  218. > * Because AmigaDOS isn't case sensitive it can't make a difference
  219. > * between the C++ "String.h" and the C "string.h". To fix this 
  220. > * please set the full path to your "string.h" header file below !
  221. > *
  222. > */
  223. >
  224. >#include "GCC:include/string.h"
  225. >
  226.  
  227.  
  228.  
  229. Lucas Ammon (lammon@iamexwi.unibe.ch)
  230.  
  231.